<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>每日一题列表</title>   
        <meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.bootcdn.net/ajax/libs/jquery-mobile/1.4.5/jquery.mobile.css" rel="stylesheet">
<script src="jq.js"></script>
<script src="jqm.js"></script>
    </head>
    <body>
        <div data-role="page" id="about" data-title="每日一题列表">
            <div data-role="header">
			<h1>每日一题列表</h1>
			</div>
            <div data-role="content">
                <ul data-role="listview" data-split-icon="gear" data-split-theme="a" data-inset="true" id="contentList">
		<?php
        $lines = file("publist.txt");
        $c = count($lines);
        $r = 0;
		for($i=$c;$i>=0;$i--) {
			$row=$lines[$i];
            if(strlen($row)>6){
                $r++;
			    echo "<li><a href='show.php?publish_date=".$row."'>".$row."</a></li>";
                if($r>=50){
                    break;
                }
            }
		}
        ?>
                </ul>
            </div>
        </div>
    </body>
</html>
